﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QRCoder;

namespace Barcode
{
	public class QRCodeLearn
	{
		public Bitmap GetQR()
		{
			QRCodeGenerator qrGenerator = new QRCodeGenerator();
			QRCodeData qrCodeData = qrGenerator.CreateQrCode("The text which should be encoded.", QRCodeGenerator.ECCLevel.Q);
			QRCode qrCode = new QRCode(qrCodeData);
			
			Bitmap qrCodeImage = qrCode.GetGraphic(20);
			return qrCodeImage;
		}
	}
}
